import instance from "@/utils/request";
import { userStore } from "@/stores/user";

export const rquestAddCart = (productId:number)=>{
    const count = userStore()
    let userId = count.getCount.uid
    
    return instance({
        method:'post',
        url:'/api/cart/add',
        data:{
            userId,
            productId
        }
    })
}